package com.label.Model.Do;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@TableName("help_record")
@Data
public class HelpRecord {

    @TableId(value = "HELP_ID",type = IdType.ASSIGN_ID)
    private Long helpId;

    @TableField(value = "WARN_USERID")
    private String warnUserId;

    @TableField(value = "WARN_USERNAME")
    private String warnUserName;

    @TableField(value = "HELP_USERID")
    private String helpUserId;

    @TableField(value = "HELP_USERNAME")
    private String helpUserName;

    @TableField(value = "SEME_WARN_ID")
    private Long semeWarnId;

    @TableField(value = "HELP_DATE",fill = FieldFill.INSERT)
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date helpDate;

    @TableField(value = "HELP_DESC")
    private String helpDesc;

    public HelpRecord(){}

    public HelpRecord(String warnUserId,String warnUserName,String helpUserId,String helpUserName,Long semeWarnId,String helpDesc){
        this.warnUserId=warnUserId;
        this.warnUserName=warnUserName;
        this.helpUserId=helpUserId;
        this.helpDesc=helpDesc;
        this.helpUserName=helpUserName;
        this.semeWarnId=semeWarnId;

    }
}
